#include <stdio.h>

int sum(int a,int b){
	int result = 0;
	for (a;a<=b;a++){
		result += a;
	}
	return result;
}


int main(){
	printf("%d %d %d", sum(1,10), sum(30,35), sum(35,45));
	return 0;
}
